#!/bin/sh

FILE=`Xdialog --title "Please choose a file" --fselect /home/ander/Downloads/torrent --center 28 48 2>&1 `

case $? in
	0)
		xterm -e "rtorrent \"$FILE\"";;
	1)
		echo "Cancel pressed.";;
	255)
		echo "Box closed.";;
esac
